/*************************************************************************
	> File Name: main.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-22 12:41:28
 ************************************************************************/

#include "ChainOfResponsibility.h"

#include <iostream>
using namespace std;

void test0(){
    Handler * p1 = new ConcreateHandler1();
    Handler * p2 = new ConcreateHandler2(p1);

    p2->HandleRequest();

    delete p1;
    delete p2;
}
 
int main(int argc,char *argv[])
{
    test0();
    return 0;
}
